-@page_title=:invite_your_friends_to_join.l

-widget do
  %h4
    .small=:spread_the_word.l
  %p=:invite_message.l(:site => configatron.community_name)
  %p
    =:people_who_sign_up_using_your_invitation_will_automatically_be_added_as_your_friends_on.l
    = configatron.community_name
    \.

= bootstrap_form_for [@user, @invitation], :layout => :horizontal do |f|
  .pull-right
    %a{"href"=>"#", "onclick"=>"showPlaxoABChooser('invitation_email_addresses', '/base/plaxo'); return false;"}
      %img{"src"=>"http://www.plaxo.com/images/abc/buttons/add_button.gif", "alt"=>:add_from_my_address_book.l}/
  = f.text_area :email_addresses , :rows => "5", :label => :enter_e_mail_addresses.l, :help => :comma_separated.l
  = f.text_area :message, :rows => "5", :label => :write_a_message.l

  = f.form_group :submit_group do
    = f.primary :send_invitations.l

%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/util.js"}
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/basic.js"}
%script{"type"=>"text/javascript", "src"=>"http://www.plaxo.com/css/m/js/abc_launcher.js"}
